#pragma once

#include "Expression.h"

MAKE_PTR(CExpression_NotEqual);

class CExpression_NotEqual : public CExpression
{
public:
	static CExpression_NotEqualPtr create(CExpressionPtr op1, CExpressionPtr op2)
	{
		return CExpression_NotEqualPtr(new CExpression_NotEqual(op1, op2));
	}

public:
	CExpression_NotEqual(CExpressionPtr op1, CExpressionPtr op2)
		:m_pOp1(op1), m_pOp2(op2)
	{

	}

protected:
	CExpressionPtr m_pOp1;
	CExpressionPtr m_pOp2;

protected:
	EvalType doEval(){return m_pOp1->eval() != m_pOp2->eval();};
};